# -*- coding: utf-8 -*-
"""
-------------------------------------------------
Project Name: luffcity study project
File Name: 迭代器练习.py
Author: kij
Create Date: 2021/2/14
-------------------------------------------------
"""
dic = {'a':1,'b':2,'c':3,'d':4}
def test_yield():
	yield 1
	yield 2
	yield 3
	yield 4
	yield 5

g = test_yield()
# res = g.__next__()
# print(res)
# res1 = g.__next__()
# print(res1)
# res2 = g.__next__()
# print(res2)
# res3 = g.__next__()
# print(res3)

for i in g:
	print(i)